<!--
  描述：保修内容配置table页
  @author tanghongjun
  @since 2020-06-09 11:07:32
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <!--规定复选框列置于第1列，居中显示-->
        <th lay-data="{field:'warrantyContentId',type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'sort', width:80, unresize:true, align:'center', edit:'text'}">排序号</th>
        <th lay-data="{field:'warrantyContentId', width:80, unresize:true, align:'center'}">ID</th>
        <th lay-data="{field:'content', unresize:true, align:'center'}">保修内容</th>
        <th lay-data="{field:'servCategId', unresize:true,width:100, align:'center'}">服务分类</th>
        <th lay-data="{field:'categOneId', unresize:true,width:100, align:'center'}">一级产品分类</th>
        <th lay-data="{field:'bizType', width:230, unresize:true, align:'center'}">业务类型</th>
        <th lay-data="{field:'status', unresize:true, width:80, align:'center'}">状态</th>
        <th lay-data="{field:'updateTime', width:230, unresize:true, align:'center'}">最后一次操作时间/人</th>
        <!--规定操作列置于最后-->
        <th lay-data="{field:'操作', width:80, unresize:true, align:'center', fixed:'right'}">操作</th>
        <!--其他规范
            值较大的数字列居右显示，并使用千分号；值较小的数字列可居中显示，
            金额列统一居右显示，默认精确到小数点后2位，并使用千分号，
            通常情况下，时间或日期列靠后放置(操作列前)，居中显示
            -->
    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.sort}">sort</td>
        <td th:text="${item.warrantyContentId}">warrantyContentId</td>
        <td th:text="${item.content}">content</td>
        <td th:text="${item.servCategName}">servCategName</td>
        <td th:text="${item.categOneName}">categOneName</td>
        <td th:text="${T(com.zmn.plat.common.dictionary.ProductDict).translateBizType(item.bizType,'/')}">bizType</td>
        <td th:text="${item.status == 2?'启用':'停用'}">status</td>
        <td th:text="${T(com.zmn.common.utils.date.DateUtil).toString(item.updateTime)+'/'+(item.updater != null ? item.updater : '')}">updateTime</td>
        <td>
            <div>
<!--                th:if="${#authPermit.checkPermit('/warranty/content/addEditView.action')}"-->
                <a  style="color: #00a0e9"
                   th:lay-href="|/warranty/content/detail.action?warrantyContentId=${item.warrantyContentId}"
                   lay-text="修改" text="修改">修改</a>&nbsp;&nbsp;
            </div>
        </td>
    </tr>
    </tbody>
</table>
